﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrayParrot.Web.Controls//.Datatables.Filters
{
    [Serializable]
    //[TypeConverter(typeof(ExpandableObjectConverter))]
    public class NumberRangeColumnFilter : ColumnFilter
    {
        private bool m_isSlider = false;

        public bool IsSlider
        {
            get { return m_isSlider; }
            set 
            { 
                m_isSlider = value;

                if (m_isSlider)
                {
                    this.Type = FilterTypes.NumberRangeSlider;
                }
            }
        }

        public NumberRangeColumnFilter()
        {
            this.Type = FilterTypes.NumberRange;
        }
    }
}
